﻿using DotNetNuke.Web.Services;

namespace DotNetNuke.Modules.DNNFiddle.Services
{
    public class DefaultRouteMapper : IServiceRouteMapper
    {
        public void RegisterRoutes(IMapRoute mapRouteManager)
        {
            // Service will be callable by using /desktopmodules/DnnFiddle/API/[controller].ashx/[methodname]
            mapRouteManager.MapRoute("DnnFiddle", "{controller}.ashx/{action}", new[] { "DotNetNuke.Modules.DNNFiddle.Services" });
            
        }
    }
}
